package org.example.day20240816;

public class test1 {

    public static int jiecheng(int n){
        if(n==0){
            return 1;
        }
        return n*jiecheng(n-1);
    }
    public static void main(String[] args) {
        int result = jiecheng(5);
        System.out.println(result);
    }
}
